package com.asa.fushu.bean;


 /**
  * r*Math.exp(i*x)
  * @author Administrator
  *
  */
public class Fushu_EXI {
	
	public double r;
	public double x;
	
	
	public static Fushu_EXI chenfa(Fushu_EXI a,Fushu_EXI b) {
		Fushu_EXI result = new Fushu_EXI();
		result.r = a.r*b.r;
		result.x = a.x+b.x;
		
		return result;
	}
	
	public static Fushu_EXI chufa(Fushu_EXI a,Fushu_EXI b) {
		Fushu_EXI result = new Fushu_EXI();
		result.r = a.r/b.r;
		result.x = a.x-b.x;
		
		return result;
	}
	

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return r+"*e^i*"+x;
	}

}
